package com.WebMentorPro.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 书籍借阅表
 * @TableName book_borrow
 */
@TableName(value ="book_borrow")
@Data
public class BookBorrow implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 借阅人 ID
     */
    private Long borrowerId;

    /**
     * 借阅书籍标题
     */
    private String bookTitle;

    /**
     * 借阅时间
     */
    private Date borrowTime;

    /**
     * 归还时间
     */
    private Date returnTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}